home *** CD-ROM | disk | FTP | other *** search
/ IRIX Base Documentation 1998 November / IRIX 6.5.2 Base Documentation November 1998.img / usr / share / catman / u_man / cat1 / makemap.z / makemap
Text File  |  1998-10-20  |  3KB  |  67 lines

  1.  
  2.  
  3.  
  4. MMMMAAAAKKKKEEEEMMMMAAAAPPPP((((1111GGGG))))                                                        MMMMAAAAKKKKEEEEMMMMAAAAPPPP((((1111GGGG))))
  5.  
  6.  
  7.  
  8. NNNNAAAAMMMMEEEE
  9.      makemap - store colors into the gl color map
  10.  
  11. SSSSYYYYNNNNOOOOPPPPSSSSIIIISSSS
  12.      mmmmaaaakkkkeeeemmmmaaaapppp [ ----ffffuuuullllllll ]
  13.  
  14. DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
  15.      A _c_o_l_o_r_m_a_p is a mapping from color-index values (integers) into RGB
  16.      values.  All _G_L programs (graphics programs linked with libgl) share a
  17.      common X colormap, which is distinct from the default X root colormap.
  18.  
  19.      Essentially, _m_a_k_e_m_a_p causes a certain set of colors to be assigned to the
  20.      GL colormap (which is just another X colormap as far as the X server is
  21.      concerned).
  22.  
  23.      Although there may be multiple X colormaps defined in the system at any
  24.      one time, only one of these X colormaps is _i_n_s_t_a_l_l_e_d (loaded into the
  25.      single hardware colormap) at any given time.  The _G_L colormap will be
  26.      _i_n_s_t_a_l_l_e_d whenever _G_L programs have input focus.
  27.  
  28.      The _G_L colormap is relevant only for _G_L programs running in _c_m_o_d_e
  29.      (color-index mode).
  30.  
  31.      By default, _m_a_k_e_m_a_p will initialize the first 256 entries in the _G_L
  32.      colormap with the exception of color cells 16 thru 31.  The reason for
  33.      not initializing 16-31 is so that X clients can use those cells without
  34.      interfering with _G_L programs.  The lowest eight colors of the _G_L colormap
  35.      are mapped to the eight standard colors of the Graphics Library (black,
  36.      red, green, yellow, blue, magenta, cyan and white).  The next 8 colors
  37.      (8-15) are mapped to some pastel shades as used by the IRIS Workspace and
  38.      other system tools.  These colors can be dithered with the first eight to
  39.      get a very wide range even on a minimal system when in double buffered
  40.      mode.  The next 16 colors (16-31) are left untouched.  The next 24 colors
  41.      (32 to 55) are mapped as a black to almost-white gray ramp.  The
  42.      remaining 200 colors (56 to 255) are mapped as a 5*8*5 color cube, which
  43.      starts at black and ends with white.  In this color cube, the 8 levels of
  44.      green change the fastest, then 5 levels of red, and finally the 5 levels
  45.      of blue change slowest.
  46.  
  47.      Options:
  48.  
  49.      ----ffffuuuullllllll If there are more than eight planes, map color cells 256-511 to the
  50.            ordered color map used by some of the image tools in the 4DGifts
  51.            package and colors 512-767 to a 256 level black to white gray ramp.
  52.  
  53. SSSSEEEEEEEE AAAALLLLSSSSOOOO
  54.      loadmap(1G), savemap(1G), showmap(1G),
  55.  
  56.  
  57.  
  58.  
  59.  
  60.  
  61.  
  62.  
  63.                                                                         PPPPaaaaggggeeee 1111
  64.  
  65.  
  66.  
  67.